
**************************
***   Create indices   ***
**************************

* Economic

alpha no_food-no_cash, gen(no_necessities)
alpha owns_radio-owns_mobile, gen(assets)

global economic no_necessities assets look_for_job part_time full_time

label var no_necessities "No basic necessities"
label var assets "Owns basic assets"

* Participation

alpha registered voted, std gen(vote)
alpha req_action contact_med contact_official, gen(contact)
alpha att_rally-work_for_cand, gen(formal_politics)
alpha raise_issue att_demo refuse_tax, gen(protest)
alpha radio-social_media, gen(consume_politics)

label var formal_politics "Participates in formal politics"
label var contact "Contacts gov for services/issues"
label var protest "Protest via taxes/force etc."
label var consume_politics "Consumes political news"


* Preferences for government

foreach var of varlist reject_* hold_accountable-two_term {
	recode `var' (2=.) (3=2) (4=3)
}

alpha hold_accountable opp_hold_acc media_hold_acc parl_laws pres_obey_laws, std gen(gov_accountable)
alpha reject_one_party reject_military reject_one_man, gen(reject_auth)
alpha pro_elections parties_needed two_term party_comp_confl, gen(supp_comp)

label var gov_accountable "Gov. should be held accountable"
label var reject_auth "Reject authoritarian regimes"
label var supp_comp "Supports political competition"

* Level of democracy

alpha careful_say votes_fair bribed-freedom_choose elec_free disc_pol, std gen(no_restrictions)
alpha careful_say freedom_say freedom_join disc_pol, std gen(free_speak)
alpha votes_fair bribed real_choice threatened fear_intimidation freedom_choose elec_free, std gen(free_vote)


label var no_restrictions "Have free political choice"
label var free_speak "Speak freely"
label var free_vote "Votes are real"


* Satisfaction with gov

alpha trust_pres-trust_inc trust_police trust_army, gen(trust_gov)
alpha trust_mp trust_lg, gen(trust_local_gov)
alpha trust_pres trust_inc trust_army trust_police, gen(trust_zanu)

label var trust_gov "Trust government"
label var trust_local_gov "Trust representatives"
